package cn.gson.fengboot.model.dao;

import cn.gson.fengboot.model.pojos.Dbusvie;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface DbusvieDao extends CrudRepository<Dbusvie,Integer> {


    @Query(value = "select * from  dbusvie d  where d.bvie_name=?1 and d.bvie_people=?2 ", nativeQuery = true)
    List<Dbusvie> findByBvieName(String bvieName, String getbuspeople);
}
